<template>
  <ul>
    <li v-for='item in data'>
      <slot
        :item='item'
        qq='234'
      >{{item.text}}<mybutton @click='del(item)'>删除</mybutton>
      </slot>
    </li>
  </ul>
</template>
<script>
// @ is an alias to /src
import mybutton from "./button";
export default {
  props: ["data"],
  data() {
    return {};
  },
  methods: {
    del(item) {
      // console.log(item);
      this.$emit("del", item);
    },
  },
  components: { mybutton },
};
</script>
<style lang="less">
</style>